package com.lagou.homework.stage01.module02.Task3;

/**
 * 上网流量套餐类
 */
public class FlowPackage extends Package implements Internet {
    private int flow;

    public FlowPackage() {
    }

    public FlowPackage(double money, int flow) {
        super(money);
        setFlow(flow);
    }

    public int getFlow() {
        return flow;
    }

    public void setFlow(int flow) {
        this.flow = flow;
    }

    @Override
    public void show(){
        System.out.println("上网流量："+getFlow());
        System.out.println("每月资费："+getMoney());
    }

    @Override
    public void internetSer(int flow, String type) {
        System.out.println("上网流量："+flow);
        System.out.println("手机卡类型为："+type);
    }
}
